/*
 * Copyright 2018 JDCLOUD.COM
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http:#www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * Sql
 * Sql操作
 *
 * OpenAPI spec version: v1
 * Contact: 
 *
 * NOTE: This class is auto generated by the jdcloud code generator program.
 */


using System;
using System.Collections.Generic;
using System.Text;


namespace JDCloudSDK.Dms.Model
{

    /// <summary>
    ///  dmsSqlResult
    /// </summary>
    public class DmsSqlResult
    {

        ///<summary>
        /// sql类型，SYNCDMLDDL，同步执行ddl，dml语句；ASYNCDMLDDL，异步执行ddl，dml语句，未支持；QUERY，执行查询类sql语句，如select；COMMAND，如show等命令，未支持。
        ///</summary>
        public string SqlType{ get; set; }
        ///<summary>
        /// 执行sql语句。
        ///</summary>
        public string Sql{ get; set; }
        ///<summary>
        /// 执行是否成功。
        ///</summary>
        public int? RetCode{ get; set; }
        ///<summary>
        /// 执行消息。
        ///</summary>
        public string Message{ get; set; }
        ///<summary>
        /// QUERY类型sql查询结果
        ///</summary>
        public List<Dictionary<String,object>> QueryResult{ get; set; }
        ///<summary>
        /// SYNCDMLDDL，COMMAND类型SQL查询结果。
        ///</summary>
        public int? Result{ get; set; }
        ///<summary>
        /// 总执行sql条数。
        ///</summary>
        public int? Total{ get; set; }
        ///<summary>
        /// 当前结果是第几条sql。
        ///</summary>
        public int? Index{ get; set; }
        ///<summary>
        /// 执行时长，单位ms。
        ///</summary>
        public int? Time{ get; set; }
        ///<summary>
        /// 查询到sql条数或影响行数。
        ///</summary>
        public int? AffectCount{ get; set; }
    }
}
